//
//  JuvidHTTPClient.h
//  YunServer
//
//  Created by Juvid on 14/10/29.
//  Copyright (c) 2014年 Juvid. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFHTTPRequestOperationManager.h"
@interface JuvidHTTPClient : AFHTTPRequestOperationManager{
}


+ (instancetype)sharedClient;
+ (instancetype)sharedNoClient;
- (void)getPath:(NSString *)path
          block:(void(^)(id json))processResult
      failblock:(void(^)(NSError *error))failresult;
- (void)postPath:(NSString *)path
      parameters:(NSDictionary *)parameters
           block:(void(^)(id json))processResult
       failblock:(void(^)(NSError *error))failresult;
- (void)getPath:(NSString *)path
     parameters:(NSDictionary *)parameters
          block:(void(^)(id json))processResult
      failblock:(void(^)(NSError *error))failresult;
@end
